package com.chexiehui.jc.mvp.car;

import com.chexiehui.jc.Constants;
import com.chexiehui.jc.base.BaseModel;
import com.chexiehui.jc.base.BaseView;
import com.chexiehui.jc.entity.SpecialCarInfo;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * @Description 特价车详情
 * @Auth SongJun
 * @Date 2020/05/21 00:18
 **/
public interface SpecialCarDetailsCovenant {

    interface View extends BaseView {
        void onGetCarInfoSuccess(BaseModel<SpecialCarInfo> successResult);

        void onGetCarInfoFailure(BaseModel<Object> failureResult);

        String getCarId();
    }

    interface Stores {
        @FormUrlEncoded
        @POST(Constants.URL_GET_SPECIAL_CAR_DETAIL)
        Observable<BaseModel<SpecialCarInfo>> getCarInfo(@Field("Id") String Id);

    }

    interface Presenter {
        void getCarInfo();
    }

}